package com.mspbots.api.service;


import com.mspbots.cw.request.MessagesDTO;
import com.mspbots.cw.request.TriggerEscalationDTO;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;

/**
 * com.mspbots.api.service.MessagesService
 *
 * @author Jun Zhou
 * @date 17:24 2019/6/28
 **/
@Deprecated
public interface MessagesService {

    MessagesDTO insert(MessagesDTO messages);

    List<MessagesDTO> findByTimeEntryId(Long entryId);

    List<MessagesDTO> findList(Map<String, Object> params);

    Future<String> sendToTeams(MessagesDTO messages, String type);

    void updateStatus(MessagesDTO messages);

    void batchUpdateStatus(List<MessagesDTO> list);

    boolean check(MessagesDTO messages);

    boolean checkEscalation(MessagesDTO messages);

    List<TriggerEscalationDTO> triggerEscalationList(Map<String, Object> params);

    int getRuleCount(Map<String, Object> params);
}
